// 1.创建文件 封装路由
import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  name: 'employees',
  hidden: false, // 控制路由否是显示在导航中，true表示不显示
  children: [
    {
      path: '',
      component: () => import('@/views/employees/index.vue'),
      meta: {
        title: '员工', // 导航标题
        icon: 'people' // 导航标题旁边的图标
      }
    },
    {
      path: 'detail/:id', // 配置动态路由，配置了动态路由必须要传参数才能访问
      component: () => import('@/views/employees/detail.vue'),
      hidden: true,
      meta: {
        title: '详情'
      }
    },
    {
      path: 'print/:id', // 配置动态路由，配置了动态路由必须要传参数才能访问
      component: () => import('@/views/employees/print.vue'),
      hidden: true,
      meta: {
        title: '详情'
      }
    }
  ]
}
